home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Super Platinum 8
/
Shareware Super Platinum 8.iso
/
mac
/
PROGTOOL
/
FGL304E.ZIP;1
/
EXPAS.ARJ
/
FGDOC
/
EXAMPLES
/
PASCAL
/
09-02.PAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1994-01-24
|
448 b
|
24 lines
program main;
uses fgmain, fgpcx;
var
mode, status : integer;
header : array [1..128] of byte;
begin
status := fg_pcxhead('CORAL.PCX'+chr(0),header);
if (status = -1) then
begin
writeln('Can''t open CORAL.PCX.');
exit;
end
else if (status = -2) then
begin
writeln('CORAL.PCX is not a PCX file.');
exit;
end;
mode := fg_pcxmode(header);
writeln('Optimal display mode is ',mode);
end.